package com.mes.cloud.dao;

import com.mes.cloud.api.dto.request.area.MarketDevelopmentRequest;
import com.mes.cloud.entity.BaseAreaMarketDevelopment;
import com.mes.cloud.entity.vo.area.MarketDevelopmentVo;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.ids.SelectByIdsMapper;

import java.util.List;
import java.util.Map;

/**
 * 区域市场发展
 *
 * @author dy
 * @email dongyi@shinho.net.cn
 * @version 2019-08-23 11:03:50
 */
public interface BaseAreaMarketDevelopmentDao extends SelectByIdsMapper<BaseAreaMarketDevelopment>, Mapper<BaseAreaMarketDevelopment>{

    /**
     * @description 查找市场发展
     * @author dongyi
     * @date 2019-08-22 11:46
     **/
    List<MarketDevelopmentVo> selectMarketDevelop(Map<String, Object> params);

    /**
     * @description 查找市场详情
     * @author dongyi
     * @date 2019-08-22 11:46
     **/
    MarketDevelopmentVo selectMarketDevelopDetail(Map<String, Object> params);

    /**
     * 通过渠道id查询
     * @param marketDevelopmentRequest
     * @return
     */
    List<BaseAreaMarketDevelopment> listByChannelIds(MarketDevelopmentRequest marketDevelopmentRequest);

    /**
     * 通过渠道id查询
     * @param channelIds
     * @return JsonResult<List<MarketDevelopmentDto>>
     */
//    JsonResult<List<MarketDevelopmentDto>> listByChannelIds(List<String> channelIds);
}
